// 引入createStroe，专门用于创建redux中最为核心的stroe对象
import { createStore, applyMiddleware,combineReducers } from 'redux'
// 引入为Count组件服务的reducer
import countReducer from './reducers/count_reducer'
// 引入为Person组件服务得reducer
import personReducer from './reducers/persons'
// 引入异步action中间件
import thunk from 'redux-thunk'
//引入开发调试工具
import {composeWithDevTools} from 'redux-devtools-extension'
// 汇总所有得reducer变为一个总得reducer
const addReducer = combineReducers({
    he:countReducer,
    rens:personReducer
})
export default createStore(addReducer, composeWithDevTools(applyMiddleware(thunk)))